import {
    Edit, Search, Lock, User, SwitchButton, ArrowDown, Headset, WarningFilled,
    Loading, UserFilled, MoreFilled, ArrowRight, ArrowLeft, Files, VideoPlay, VideoPause,
    FolderOpened, PictureRounded, Setting, Minus, Close, CopyDocument, 
    VideoCamera, Monitor, Crop, Folder, ArrowUp, Check, SetUp, DArrowRight, DArrowLeft,
    Back, RefreshRight, Right, CirclePlus, Menu, Plus, CircleCheckFilled,
    CircleCloseFilled, Refresh, FullScreen, UploadFilled, Message, EditPen,
    Postcard, ChatDotSquare, Bell, Comment, InfoFilled, QuestionFilled, Male, Female,
    MuteNotification, CloseBold, Picture, CaretTop, CaretBottom, CircleCheck, Warning, SuccessFilled,
    Position, Delete, Cloudy, Notification, Link, Compass, Pointer, Expand
} from '@element-plus/icons-vue'; // 图标需要分开导入，按需导入图标

// 注册图标组件
let iconComponent = [
    Edit, Search, Lock, User, SwitchButton, ArrowDown, Headset, WarningFilled,
    Loading, UserFilled, MoreFilled, ArrowRight, ArrowLeft, Files, VideoPlay, VideoPause,
    FolderOpened, PictureRounded, Setting, Minus, Close, CopyDocument,
    VideoCamera, Monitor, Crop, Folder, ArrowUp, Check, SetUp, DArrowRight, DArrowLeft,
    Back, RefreshRight, Right, CirclePlus, Menu, Plus, CircleCheckFilled,
    CircleCloseFilled, Refresh, FullScreen, UploadFilled, Message, EditPen,
    Postcard, ChatDotSquare, Bell, Comment, InfoFilled, QuestionFilled, Male, Female,
    MuteNotification, CloseBold, Picture, CaretTop, CaretBottom, CircleCheck, Warning, SuccessFilled,
    Position, Delete, Cloudy, Notification, Link, Compass, Pointer, Expand
];
export const componentIcon = (app:any) => 
{
    iconComponent.forEach((item) =>
    {
        app.component(item.name, item);
    });
};
